package com.ddw.meedeeuh.shared.movie.scrapers.local;

import java.util.ArrayList;
import java.util.List;

import com.ddw.meedeeuh.shared.movie.Audio;
import com.ddw.meedeeuh.shared.movie.EditableStreamDetails;
import com.ddw.meedeeuh.shared.movie.Subtitle;
import com.ddw.meedeeuh.shared.movie.Video;

class LocalStreamDetails implements EditableStreamDetails {

	private final List<Video> videos = new ArrayList<Video>();
	private final List<Audio> audios = new ArrayList<Audio>();
	private final List<Subtitle> subtitles = new ArrayList<Subtitle>();

	@Override
	public Iterable<? extends Video> getVideos() {
		return this.videos;
	}

	@Override
	public Iterable<? extends Audio> getAudios() {
		return this.audios;
	}

	@Override
	public Iterable<? extends Subtitle> getSubtitles() {
		return this.subtitles;
	}

	@Override
	public void clearAudios() {
		this.audios.clear();
	}

	@Override
	public void addAudio(Audio audio) {
		this.audios.add(audio);
	}

	@Override
	public void removeAudio(Audio audio) {
		this.audios.remove(audio);
	}

	@Override
	public void clearVideos() {
		this.videos.clear();
	}

	@Override
	public void addVideo(Video video) {
		this.videos.add(video);
	}

	@Override
	public void removeVideo(Video video) {
		this.videos.remove(video);
	}

	@Override
	public void clearSubtitles() {
		this.subtitles.clear();
	}

	@Override
	public void addSubtitle(Subtitle subtitle) {
		this.subtitles.add(subtitle);
	}

	@Override
	public void removeSubtitle(Subtitle subtitle) {
		this.subtitles.remove(subtitle);
	}

}
